package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SGuildWarehouseAssign extends Object implements IMessageBase
    {
        public var toEntityId:SEntityId;
        public var items:Array;
        public var state:EGuildWarehouseState;
        public const _type:int = 12045;
        public static var _regist:SGuildWarehouseAssign = new SGuildWarehouseAssign(true);

        public function SGuildWarehouseAssign(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SGuildWarehouseAssign();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.toEntityId.__write(param1);
            SeqPlayerItemHelper.write(param1, this.items);
            this.state.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(param1);
            this.items = SeqPlayerItemHelper.read(param1);
            this.state = EGuildWarehouseState.__read(param1);
            
        }

    }
}
